using Furion.DynamicApiController;

namespace Kevin.Dapr.Api.Controllers
{
    public partial class NacosController : IDynamicApiController
    {
        public Task<string> GetString()
        {
            var text = _configuration.GetValue<string>("MinIOSettings:SecretKey");
            return Task.FromResult(text);
        }
    }

    public partial class NacosController
    {
        private readonly IConfiguration _configuration;
        public NacosController(IConfiguration configuration)
        {
            _configuration = configuration;
        }
    }
}
